package edu.kit.csl.cratylus.extraction;

import edu.kit.csl.cratylus.datatypes.Word;

/**
 * Trivial writing system implementation (GoF null object). The phoneme string 
 * is taken as it is, without any sanity checks or modifications. Note that 
 * this writing system does not guarantee that the returned string does not
 * contain any blanks.
 */
public class IdentityWritingSystem implements WritingSystem {

	/**
	 * Returns the argument as it is.
	 * 
	 * @param word the word containing a blank separated phoneme string
	 * @return given phoneme string
	 */
	@Override
	public String convert(Word word) {
		return word.getContent();
	}

}
